package com.woniu.jifen.service;

import com.woniu.common.util.ResponseData;
import com.woniu.jifen.entity.AUserCoupon;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author s‘’w
* @description 针对表【a_user_coupon(用户优惠券)】的数据库操作Service
* @createDate 2024-05-21 19:29:03
*/
public interface AUserCouponService extends IService<AUserCoupon> {

    ResponseData<?> queryByUserId(Integer userId);

    ResponseData<?> updateUsersCoupon(Integer userId);

    ResponseData<?> queryUsersCouponBySortId(Integer userId, Integer sortId);

    /**
     * 初始化用户优惠券
     */
    String initAUserCoupon();


    void rollbackUsersCoupon(Integer id);
}
